﻿using Sgr.Domain.Repositories;

namespace Sgr.UPMS.Domain.Organizations
{
    public interface IOrganizationInvitationRepository : IBaseRepositoryOfTEntityAndTPrimaryKey<OrganizationInvitation, long>
    {
        /// <summary>
        /// 根据邀请码获取邀请信息
        /// </summary>
        Task<OrganizationInvitation?> GetByInvitationCodeAsync(
            string invitationCode,
            CancellationToken cancellationToken = default);
    }
}